package com.swinw.asumall.product.feign;

import com.swinw.asumall.product.entity.MemberPriceEntity;
import com.swinw.asumall.product.entity.SkuFullReductionEntity;
import com.swinw.asumall.product.entity.SkuLadderEntity;
import com.swinw.asumall.product.entity.SpuBoundsEntity;
import com.swinw.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "coupon-service")
public interface CouponPriceFeignService {

    @RequestMapping("/coupon/memberprice/save")
    public R save(@RequestBody MemberPriceEntity memberPrice);

    @RequestMapping("/coupon/skufullreduction/save")
    public R save(@RequestBody SkuFullReductionEntity skuFullReduction);

    @RequestMapping("/coupon/skuladder/save")
    public R save(@RequestBody SkuLadderEntity skuLadder);

    @RequestMapping("/coupon/spubounds/save")
    public R save(@RequestBody SpuBoundsEntity spuBounds);
}
